package com.example.inprinciple.bridge.testB;

/**
 * 创建日期：2022/6/8 0008 0:09
 *
 * @author tony.sun
 * 类说明：
 */
public abstract class PhoneB {
    private final BrandB brandB;

    public PhoneB(BrandB brandB) {
        this.brandB=brandB;
    }

    protected void close(){
        brandB.close();
    }

    protected void open() {
        brandB.open();
    }

    protected void call() {
        brandB.call();
    }
}
